package com.colorfruit.framework.validate;



import com.colorfruit.framework.model.enums.ValidTypeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.colorfruit.framework.model.enums.ValidTypeEnum.THROW_EXCEPTION;

/**
 * 业务描述：入参校验
 *
 * @Auther: chenjiayuan
 * @Date: create in 2018/7/6 14
 * @Description:
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestBodyWithValid {
    ValidTypeEnum decipher() default THROW_EXCEPTION;
    boolean required() default false;
}
